package com.zzh.weixinsell.dao;

import com.zzh.weixinsell.model.pojo.OrderMaster;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.awt.print.PageFormat;
import java.util.List;

@Mapper
@Component
public interface OrderMasterMapper {
    int deleteByPrimaryKey(String orderId);

    int insert(OrderMaster record);

    OrderMaster selectByPrimaryKey(String orderId);

    int updateByPrimaryKey(OrderMaster record);

    @Select("select * from order_master where buyer_openid = #{buyer_openid}")
    List<OrderMaster> findByBuyerOpenid(@Param("buyer_openid") String buyer_openid);

}